project(wave_interference)
cmake_minimum_required(VERSION 2.8)
find_package(Qt4 REQUIRED)
add_definitions(
	-DQT_THREAD_SUPPORT
	-DAPROX_ON
)
include_directories(
	${QT_INCLUDES}
	${CMAKE_BINARY_DIR}
	${CMAKE_CURRENT_SOURCE_DIR}
)

set(CPP_FILES
	main/pointsgenerator.cpp
	settings/settings.cpp
	main/datamanager.cpp
	main/main.cpp
	main/mainwindow.cpp
	settings/settingsdialog.cpp
	graphics/scene.cpp
# 	graphics/graphicsview.cpp
# 	graphics/item.cpp
# 	main/vector4.cpp
# 	main/matrixrotation.cpp
	main/rotation.cpp
)
set(UI_FILES
	ui/mainwindow.ui
	ui/settingsdialog.ui
)
set(H_FILES
	main/rotation.h
	main/mainwindow.h
	settings/settingsdialog.h
	graphics/scene.h
# 	graphics/graphicsview.h
# 	graphics/item.h
	main/pointsgenerator.h
# 	main/vector4.h
# 	main/matrixrotation.h
	settings/settings.h
)

qt4_automoc(${CPP_FILES})
QT4_WRAP_UI(wrap_ui ${UI_FILES})
qt4_wrap_cpp(wrap_h ${H_FILES})

add_executable(wave_interference
	${CPP_FILES}
	${wrap_ui}
	${wrap_h}
)
target_link_libraries(wave_interference
	${QT_QTCORE_LIBRARY}
	${QT_QTGUI_LIBRARY}
)